home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.lang.c
- Path: netcom.com!smryan
- From: smryan@netcom.com (@#$%!?!)
- Subject: Re: Stylistic Concerns with Header Files
- Message-ID: <smryanDq6LFq.I57@netcom.com>
- Organization: The Programmer formerly known as S M Ryan
- X-Newsreader: TIN [version 1.2 PL1]
- References: <4lb9bl$amo@wormer.fn.net>
- Date: Sat, 20 Apr 1996 22:07:02 GMT
- Sender: smryan@netcom4.netcom.com
-
- : /* Untested code; call this "foo.h" */
-
- : #ifndef _FOO_H_
- : #define _FOO_H_
-
- #include "bar.h" /* conditionally include bar.h if we need it. */
-
- : typedef struct price_tag
- : {
-
-
-
- : My question is: how can you keep the two header files seperate, and
- : still get away with not having header file dependancies or inclusion
- : orders?
-
- If you bracket each header file for conditional inclusion, you can freely
- include one header file inside another: the first occurence will expand
- and all others will be ignored.
- --
- The Queen who loves, the Queen of life, | smryan@netcom.com PO Box 1563
- the Queen who straits, the Queen of strife;| Cupertino, California
- with gasp of death or gift of breath | (xxx)xxx-xxxx 95015
- she brings the choice of birth or knife. | I don't use no smileys
-